<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/denglu.css">
    <link rel="stylesheet" href="../shiliang/font_h85ebej1bek/iconfont.css">
    <link rel="stylesheet" href="../css/head.css">

</head>

<body>


    <header>



    </header>
    <div class="d-banxing">
        <div class="d-beijng">

            <div class="d-denglukuang">
                <div class="d-neirongkuang">
                    <a href="#">
                        <h6 class="d-denglujian">
                            账号密码登录
                        </h6>
                    </a>
                    <a href="#">
                        <h6 class="d-zhucejian">
                            手机快捷登录
                        </h6>
                    </a>
                    <div id="denglui">
                        <input type="text" placeholder="请输入账号" id="d-zhanghaolan">
                        <input type="text" placeholder="请输入密码" id="d-mimalan">
                        <input type="button" value="立即登录" id="d-dianjidengl">
                    </div>

                </div>
                <div class="qitafangshi">
                    <form style="border:1px solid black">
                    </form>
                    其他方式登录
                    <form style="border:1px solid black;" id="form1">
                    </form>
                    <div class="d-weixingfamgshi">
                        <a href="#"><span class="iconfont icon-weixin
                        "></span></a>
                    </div>
                </div>
                <ul class="d-wangjimima">
                    <li class="d-yili">注册账号</li>
                    <li>忘记密码</li>
                </ul>
            </div>



        </div>
        <div class="k-kuaijiedenglukuang">
            <div class="k-neikuang">
                <div class="k-zhanghao"><a href="#">
                        账号密码登录
                    </a></div>
                <div class="k-duanxing"><a href="#">
                        短信快捷登录
                    </a></div>
                <input type="text" placeholder="手机号码" id="k-shoji">
                <input type="text" class="code" placeholder="请输入右图上的验证码">
                <input type="button" id="code" onclick="change();" value="PxOy99">
                <input type="text" placeholder="短信验证码" id="k-duanxingyanzheng">
                <input type="button" value="获取验证码" id="K-yanzhengdian">
                <input type="button " value="立即登录" id="K-lijidengldian">

            </div>

            <div class="k-biaoban">
                <form style="border:1px solid black" id="k-for1"></form>
                <span id="k-qitadenglu"><a href="#">其它登录方式</a></span>
                <form style="border:1px solid black" id="k-for2"></form>
                <div class="k-vxlogo">
                    <a class="iconfont icon-weixin" href="#"></a>
                </div>
                <ul class="K-zucezhangjaojian">
                    <li class="k-yili">注册账号</li>
                    <li class="K-zucezhangjaojian1">忘记密码</li>
                </ul>
            </div>



        </div>

    </div>

    <div class="d-dilans">
        <div class="zhonghe">
            <div class="logotu">
                <img src="https://img.fishfay.com/theme/images/logo/slogan-anta-r.svg" alt="">
            </div>
            <div class="d-dilannrirong">
                <div class="d-erweima">

                </div>
                <div class="krfuzixun">
                    <div class="kefu"><a href="#">在线客服<span class="iconfont icon-xiazai46"></span>
                        </a></div>
                    <div class="zixun">
                        在线咨询 400-858-2020
                    </div>
                    <div class="d-wangzhi">
                        <span>Copyright(C) 2012-2020 by wwwANTA.cn
                        </span>
                        <span>&copy;安跑体育用品有限公司板权所有
                        </span>
                        <span><a href="#">营业执照</a></span>
                        <span><a href="#"></a>开户许可证</span>
                        <span><a href="#">个人信息保护政策</a></span>
                        <br>
                        <span>闽ICP备2021011550马-2</span>
                        <span>闽公网安备35020302033806号</span>
                    </div>
                </div>
            </div>
        </div>

    </div>

    <div class="faanhuidengbu">
        <a href="#">
            <div class="fanhuian1">
                <span class="iconfont icon-backtop"></span>
            </div>
        </a>
        <a href="gowuche.html">
            <div class="fanhuian2">
                <span class="iconfont icon-gouwuche1
            "></span>
            </div>
        </a>
        <a href="#">
            <div class="fanhuian3">
                <span class="iconfont icon-kefu
            "></span>
        </a>
    </div>
</body>

</html>
<script src="../js/jQuery.js"></script>
<script src="../js/denglu.js"></script>
<script src="../js/cookie.js"></script>
<script>
    let oBtnLogin = document.getElementById("d-dianjidengl");
    let oUserPass = document.getElementById("d-mimalan");
    let oUserName = document.getElementById("d-zhanghaolan");
    oBtnLogin.onclick = function () {
        $.ajax({
            url: './goodsAndShoppingCart/login.php',
            method: 'post',
            data: {
                username: $("#d-zhanghaolan").val(),
				userpass: $("#d-mimalan").val()
            },
            success: (res) => {
                if($.trim(res) == "success"){
                    setCookie("username",$("#d-zhanghaolan").val(),7)
					setCookie("userpass",$("#d-mimalan").val(),7)
                    location.href = "index.html";
                }
                console.log(res)
            }
        })

    }


</script>